package com.nlx.notes.module.controller.test;

import com.nlx.notes.module.service.ITransactionsService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@RequiredArgsConstructor
public class FlowDataController {


    final ITransactionsService transactionsService;

    @GetMapping(value = "/init-data")
    public String initData(){
        transactionsService.initData(4L);
        return "success";
    }

}
